package com.dsg.entity.account;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 費用調整
 * </p>
 *
 * @author system
 * @since 2020-11-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dsg_account_adj")
@ApiModel(value="DsgAccountAdj对象", description="費用調整")
public class DsgAccountAdj implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("OID")
    private String oid;

    @ApiModelProperty(value = "退款编号")
    @TableField("ADJ_CODE")
    private String adjCode;

    @ApiModelProperty(value = "調整類型")
    @TableField("ADJ_TYPE")
    private Integer adjType;


    @ApiModelProperty(value = "調整金額")
    @TableField("ADJ_AMOUNT")
    private BigDecimal adjAmount;

    @ApiModelProperty(value = "銀行名稱")
    @TableField("ACCOUNT_NAME")
    private String accountName;

    @ApiModelProperty(value = "銀行帳號")
    @TableField("ACCOUNT_NO")
    private String accountNo;

    @ApiModelProperty(value = "持卡人英文名")
    @TableField("HOLD_NAME")
    private String holdName;

    @ApiModelProperty(value = "持卡人手機")
    @TableField("HOLD_PHONE")
    private String holdPhone;

    @ApiModelProperty(value = "審批狀態")
    @TableField("APPR_STATUS")
    private Integer apprStatus;

    @ApiModelProperty(value = "備註")
    @TableField("REMARKS")
    private String remarks;

    @ApiModelProperty(value = "企業編號")
    @TableField("ENT_CODE")
    private String entCode;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATER")
    private String creater;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    @TableField("UPDATER")
    private String updater;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    private Date updateTime;

    @ApiModelProperty(value = "客戶編號")
    @TableField("CUS_NO")
    private String cusNo;

    @ApiModelProperty(value = "交易帳目oid")
    @TableField(exist = false)
    private String tradeOids;

    @ApiModelProperty(value = "入油數據oid")
    @TableField(exist = false)
    private String dataDetailOids;

    /**
     * 退Credit
     */
    public static final int ADJ_TYPE_1 = 1;
    /**
     * 退款
     */
    public static final int ADJ_TYPE_2 = 2;
    /**
     * Charge Back
     */
    public static final int ADJ_TYPE_3 = 3;
    /**
     * 自定义退款
     */
    public static final int ADJ_TYPE_4 = 4;
    /**
     * 审批中
     */
    public static final int APPR_STATUS_0 = 0;
    /**
     * 通过
     */
    public static final int APPR_STATUS_1 = 1;
    /**
     * 拒绝
     */
    public static final int APPR_STATUS_2 = 2;
    /**
     * 完成
     */
    public static final int APPR_STATUS_3 = 3;
}
